//统一管理后台api
import request from "@/utils/request.js"
export const $deviceCount = () => {
    return request.get('/device/count');
}
export const $sensorCount = () => {
    return request.get('/sensor/count');
}
export const $sensorList = () => {
    return request.get('/device/sensorList');
}
export const $gatewayList = (params) => {
    return request.get('/gateway/list', { params });
}
export const $sensorList1 = (params) => {
    return request.get('/sensor/list', { params });
}
export const $groupList = (params) => {
    return request.get('/group/list', { params });
}
export const $groupAdd = (data) => {
    return request.post('/group/add', data);
}
export const $groupDel = (data) => {
    return request.post('/group/del', data);
}
export const $groupEdit = (data) => {
    return request.post('/group/edit', data);
}
export const $rechargeList = (params) => {
    return request.get('/fee/rechargeList', { params });
}
export const $usageList = (params) => {
    return request.get('/fee/usageList', { params });
}
export const $measureList = (params) => {
    return request.get('/measurement/list', { params });
}
export const $measureAdd = (data) => {
    return request.post('/measurement/add', data);
}
export const $measureDel = (data) => {
    return request.post('/measurement/del', data);
}
export const $measureEdit = (data) => {
    return request.post('/measurement/edit', data);
}
export const $securityList = (params) => {
    return request.get('/security/list', { params });
}
export const $securityAdd = (data) => {
    return request.post('/security/add', { data });
}
export const $securityDel = (data) => {
    return request.post('/security/del', data);
}
export const $securityEdit = (data) => {
    return request.post('/security/edit', data);
}
export const $accountList = (params) => {
    return request.get('/account/list', { params });
}
export const $accountAdd = (data) => {
    return request.post('/account/add', data);
}
export const $accountDel = (data) => {
    return request.post('/account/del', data);
}
export const $accountEdit = (data) => {
    return request.post('/account/edit', data);
}
export const $login = (data) => {
    return request.post('/account/login', data);
}